package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 远程调用时，若请求参数有错，可抛出此异常
 * @author ljh
 * @date 2020/4/20 17:30
 */
public class InvalidRequestParameterException extends BaseException {
    private String parameterName;
    private Object parameterValue;
    public InvalidRequestParameterException(String message){
        super(ErrorCodeMessage.INVALID_REQUEST_PARAMETER_EXCEPTION_MSG.getCode(), message);
    }

    public InvalidRequestParameterException(int code, String message){
        super(code, message);
    }

    public String getParameterName() {
        return parameterName;
    }
    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public Object getParameterValue() {
        return parameterValue;
    }
    public void setParameterValue(Object parameterValue) {
        this.parameterValue = parameterValue;
    }
}
